﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMS.Domain
{
    /// <summary>
    /// 入库附件表实体
    /// </summary>
    public class InboundAttachment
    {
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 入库单号
        /// </summary>
        [Required]
        [StringLength(50)]
        public string OrderId { get; set; } = string.Empty;

        /// <summary>
        /// 附件类型
        /// </summary>
        [Required]
        [Column(TypeName = "nvarchar(20)")]
        public string AttachmentType { get; set; }

        /// <summary>
        /// 文件路径
        /// </summary>
        [Required]
        [StringLength(255)]
        public string FilePath { get; set; } = string.Empty;

        /// <summary>
        /// 上传状态
        /// </summary>
        [Column(TypeName = "nvarchar(20)")]
        public string UploadStatus { get; set; } 

       
    }
}
